package com.ruoyi.customer.domain;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.market.domain.ConfigBase;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 用户财务记录对象 customer_static
 *
 * @author ruoyi
 */
public class CustomerFinance extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 用户ID */
    private Long userId;

    /** 店铺ID */
    private String shopId;

    /** 金额 */
    private BigDecimal amount;

    /** 财务类型 充值 recharge 打赏 gift 下单 order 订单取消返还 back 提现 cash */
    private String financeType;

    /** 关联订单 */
    private String orderNo;

    private CustomerUser customerUser;

    /** 所属店铺信息   */
    private ConfigBase shopInfo;

    public CustomerFinance()
    {

    }

    public CustomerFinance(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getUserId()
    {
        return userId;
    }

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public String getShopId(){ return shopId; }

    public void setShopId(String shopId){ this.shopId = shopId; }

    public BigDecimal getAmount(){ return amount;}

    public void setAmount(BigDecimal amount){ this.amount = amount; }

    public String getFinanceType(){ return financeType;}

    public void setFinanceType(String financeType){ this.financeType = financeType; }

    public String getOrderNo(){ return orderNo;}

    public void setOrderNo(String orderNo){ this.orderNo = orderNo; }

    public CustomerUser getCustomerUser()
    {
        return customerUser;
    }

    public void setCustomerUser(CustomerUser customerUser)
    {
        this.customerUser = customerUser;
    }

    public ConfigBase getShopInfo()
    {
        return shopInfo;
    }

    public void setShopInfo(ConfigBase shopInfo)
    {
        this.shopInfo = shopInfo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("shopId", getShopId())
                .append("amount", getAmount())
                .append("financeType", getFinanceType())
                .append("orderNo", getOrderNo())
                .append("shopInfo", getShopInfo())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
